projects
/
feed
/
packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1f86a6
)
python: add _PYTHON_HOST_PLATFORM env var when cross-compiling C extensions
author
Alexandru Ardelean
<
[email protected]
>
Sun, 19 Oct 2014 18:17:33 +0000
(21:17 +0300)
committer
Alexandru Ardelean
<
[email protected]
>
Sun, 19 Oct 2014 19:33:08 +0000
(22:33 +0300)
This mostly helps to avoid confusion when modules are cross-compiled.
Otherwise build folders are named with the host's platform name.
Signed-off-by: Alexandru Ardelean <
[email protected]
>
lang/python/files/python-package.mk
patch
|
blob
|
history
diff --git
a/lang/python/files/python-package.mk
b/lang/python/files/python-package.mk
index 35f5ac8378088d81754a44b3f6fa03d763a63696..f5ec5cee9ed216ebc5ef0633b2c4e5814241b549 100644
(file)
--- a/
lang/python/files/python-package.mk
+++ b/
lang/python/files/python-package.mk
@@
-79,6
+79,7
@@
define Build/Compile/PyMod
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="$(TARGET_CPPFLAGS) -I$(PYTHON_INC_DIR)" \
LDFLAGS="$(TARGET_LDFLAGS) -lpython$(PYTHON_VERSION)" \
+ _PYTHON_HOST_PLATFORM="linux-$(ARCH)" \
$(3) \
, \
./setup.py $(2) \